package repository

import (
	"ruoyi/domain/entity/common"
	"ruoyi/domain/entity/response"
	"ruoyi/domain/entity/system"
)

type SysConfigRepository interface {
	SelectConfigList(params common.SearchTableDataParam, isPage bool) common.TableDataInfo

	SelectConfig(config system.SysConfig) system.SysConfig

	GetConfigInfo(configId interface{}) system.SysConfig

	SaveConfig(config system.SysConfig) response.Response

	CheckConfigKeyUnique(configKey string) int64

	SelectCaptchaEnabled() bool

	SelectConfigByKey(configKey string) string

	EditConfig(config system.SysConfig) response.Response

	DelConfig(configIds string) response.Response

	DelConfigById(configId int)
}
